public class Model {
    double d1,d2;
    double h;
    public double S(double d1,double d2,double h)
    {
        return (d1+d2)*h/2;
    }
}
